const initialValues = {
    user: {},
    profile: {}
}

const Mine = (state = initialValues, action) => {
    const { type, payload } = action
    switch (type) {
        case 'mine/saveInfo':
            return {
                ...initialValues,
                user: payload
            }
        case 'mine/profile':
            return {
                ...initialValues,
                profile: payload
            }
        default:
            return state
    }


};
export default Mine
